package cn.admin.config.common.protocol;

public class InvalidElement implements ProtocolElement {

    final int uid;
    final Exception cause;

    public InvalidElement(int uid,Exception cause) {
        this.uid = uid;
        this.cause = cause;
    }

    public Exception getCause() {
        return this.cause;
    }

    @Override
    public ProtocolElementUid uid() {
        return ProtocolElementUid.NULL;
    }
}
